package com.sap.sap_mangers.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author AdongYi
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SapSawbsScore implements Comparable<SapSawbsScore> {

    private long sawbsScoreId;
    private String sawbsScoreUsername;
    private String name;
    private long sawbsScoreWeeks;
    private long sawbsScoreNote;
    private long sawbsScoreSummary;
    private long sawbsScoreDepth;
    private long sawbsScoreEnthusiasm;
    private long sawbsScoreComprehensive;
    private String sawbsScoreDesc;
    private long sawbsScoreYear;
    private long sawbsScoreOrder;
    private Integer rank;
    private Integer sumPeople;
    private long sumOfSawbsScore;
    private Integer sawbsUserResultsSubmitted;
    private String sawbsUserResultsSubmittedUrl;


    @Override
    public int compareTo(SapSawbsScore sapSawbsScore) {
        return (int) (sapSawbsScore.sumOfSawbsScore - this.sumOfSawbsScore);
    }
}
